﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JHQC
{
    public class OptItem
    {
        public OptItem(string s)
        {
            QrCode = s.Trim();
        }
        public string QrCode { get; set; }
        public string ToPlayStr()
        {
            return ToViewStr().Substring(2,2);
        }
        public string ToViewStr()
        {
            var t = 4 - QrCode.Length ;
            var vs = QrCode;
            if (t > 0)
            {
                for (int i = 0; i < t; i++)
                {
                    vs = "0" + QrCode;
                }
            }

            var v = vs.Substring(QrCode.Length - 4, 4);
            return v;
        }
        public StatusEnum Status { get; set; }
    }
}
